package org.anderground.internal.graphics.impl;

import org.anderground.internal.graphics.abstaractions.AbstractPathEffect;

import android.graphics.PathEffect;

public class AndroidPathEffect implements AbstractPathEffect {

	protected PathEffect effect;

	public static org.anderground.core.graphics.PathEffect castBack(
			PathEffect effect) {
		return new org.anderground.core.graphics.PathEffect(
				new AndroidPathEffect(effect));
	}

	public static PathEffect cast(
			org.anderground.core.graphics.PathEffect aEffect) {
		if (aEffect == null)
			return null;
		return ((AndroidPathEffect) aEffect.getDelegate()).getEffect();
	}

	public AndroidPathEffect(PathEffect effect) {
		this.effect = effect;
	}

	public PathEffect getEffect() {
		return effect;
	}
}
